NLU Intents Classification with LLM

NLU intents classification with LLM enables advanced intent classification using a Large Language Model (LLM). This model is integrated into the Flow Predict Engine, enhancing intent recognition accuracy and adaptability.

NOTE: This feature is available starting with Druid 8.10 and higher. NLU intents classification with LLM currently does not support Named Entity Recognition (NER).

Instead of relying solely on manual rules, the LLM determines the correct user intent by analyzing three key flow components:

  • Flow Name
  • Description LLM (the technical instructions and context provided for the model)
  • NOTE: In Druid versions prior to 9.18, the LLM used the Description field (now renamed to Display Name) for intent classification. To ensure a seamless transition and maintain classification logic, Druid 9.18 automatically migrated the existing content from the legacy Description field into the new Description LLM section.
  • Training Phrases (the sample utterances mapped to the flow)

By automatically learning from these elements, the model reduces the manual classification effort while providing a more nuanced understanding of user queries.

Supported LLM providers

You can choose from the following large language model (LLM) providers:

  • AzureOpenAI
  • OpenAI
  • Google
  • Mistral
  • Mesolitica – MaLLaM - This LLM provider is available in DRUID 9.1 and higher.
  • AWS Bedrock - This LLM provider is available in DRUID 9.5 and higher. Contact your DRUID representative to activate it on your tenant.

DRUID-dedicated LLM resources

  • Druid Becus 3.0 / 1.0 (Proprietary LLM)
  • Azure OpenAI - gpt-4o-mini
  • AwsBedrock - mistral-large-2407-v1:0

  • Google Vertex AI

If you want to use DRUID-dedicated LLM resources, contact your sales representative to activate them for your tenant.

How It Works

When NLU intents classification with LLM is configured, the system leverages a LLM for intent classification using two key prompts:

  • System prompt: Instructs the LLM to classify a user query by scoring provided intents based on relevance, adhering to strict JSON formatting and predefined scoring rules while considering both user-supplied and system intents.
  • User prompt: Provides the intent list and user query, ensuring the model has the necessary context for classification.

Configure NLU Intents Classification with LLM

Once configured, the model uses the two prompts to classify user intents automatically.

IMPORTANT! When using NLU intents classification with LLM, it’s important to separate natural language training phrases from technical commands. To avoid introducing noise into intent detection, move any technical training phrases—such as exact keywords, system triggers, or command-like inputs — into the Commands section of the respective flow. These phrases will then be matched exactly, without affecting the NLP model's understanding of user intent. Commands are available in DRUID 8.14 and higher.